#ifndef _EEPROM_H
#define _EEPROM_H

#define CS_PROM_DDR 		DDRG
#define CS_PROM_PORT 		PORTG
#define CS_PROM_PIN			PG3


#define CS_PROM_CONF 	CS_PROM_DDR|=1<<CS_PROM_PIN
#define CS_PROM_DISABLE	CS_PROM_PORT|=1<<CS_PROM_PIN
#define CS_PROM_ENABLE	CS_PROM_PORT&=~(1<<CS_PROM_PIN)

void Init_EEPROM(void);
unsigned char read_EEPROM(unsigned char addr);
void write_EEPROM(unsigned char addr,unsigned char data);



#endif
